php forum
php mysql forum
php mysql smarty
 
Page 4 of 4 < 1 2 3 4
Topic Options
#249080 - 08/06/03 11:14 AM Re: [6.3] Facelift for UBB Threads [Re: Daine]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I manged to hack around and get the edit back for closed topics. It's not the prettiest looking thing in the world, and now there are 2 edit buttons for moved threads, but at least it works! Only moderators and I can see them, and with 6.4 that stuff is going to be moved anyway.<br /><br />Thanks! <img src="/forum/images/graemlins/grin.gif" alt="" />

Top
#249081 - 08/11/03 04:03 PM Re: [6.3] Facelift for UBB Threads [Re: eslmix]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
Hi...I just noticed an extraneous line of text above the footer on the showflat screen that says: <br /> <br />"Open = O Edit link =" <br /> <br />and as far as I can tell it's associated with a couple of lines of code added at the bottom of the 7/11 showflat.tmpl (if I upload the 7/2 showflat template, the extraneous text goes away) <br /> <br />It's no biggie, of course, but I'm curious if there is a simple fix. <br /> <br />Thanks <img src="/forum/images/graemlins/smile.gif" alt="" /> Tony

Top
#249082 - 08/11/03 06:02 PM Re: [6.3] Facelift for UBB Threads [Re: BOOO_YAAA]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Are you talking about showflat.tmpl dated 7/11 in the zip file? I don't see what you're talking about in there.

Top
#249083 - 08/11/03 06:21 PM Re: [6.3] Facelift for UBB Threads [Re: eslmix]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
yes, that is the template I'm talking about.<br /><br />My board uses facelift, and I just noticed that at the bottom of the showflat page, there is some extraneous text that appears, outside any of the usual tables, and just before the footer. It reads:<br /><br />"Open = O Edit link ="<br /><br />This text is not there when I use the older showflat template, and appears (tto me)to be somehow associated with code added in the 7/11 showflat.tmpl, namely these two lines near the end:<br /><br />Open = $Open<br />Edit link = {$postrow[$i]['editlinkstart']}<br /><br />...which I presume have to do with the editing option Dal was adding.<br /><br />Any idea how these could lead to the extraneous text? If YOU are using the facelift, have you not noticed this text?<br /><br />Always possible, of course, that I have something ELSE wrong with my board, but thought I'd check about the obvious link between that text and these 2 lines of code.<br /><br />Thanks! Tony

Top
#249084 - 08/12/03 07:34 AM Re: [6.3] Facelift for UBB Threads [Re: BOOO_YAAA]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
Actually, I do think I remember seeing this. I am trying to look at my tmpl file now, but I can't FTP into my account at the moment.

Top
#249085 - 08/12/03 07:34 AM Re: [6.3] Facelift for UBB Threads [Re: eslmix]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
What is the URL to your site?

Top
#249086 - 08/12/03 10:34 AM Re: [6.3] Facelift for UBB Threads [Re: eslmix]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
here's my test board Check out any showflat page near the bottom.<br /><br />Thanks - Tony

Top
#249087 - 08/12/03 11:17 AM Re: [6.3] Facelift for UBB Threads [Re: BOOO_YAAA]
DLWebmaestro Offline
Addict

Registered: 08/08/00
Posts: 1802
Loc: North Carolina
I just noticed it's still on mine! I don't know why they're there, but here's how to fix it:<br /><br />Find this:<br />
Code:
<br />Open = $Open<br />Edit link = {$postrow[$i]['editlinkstart']}<br />
<br /><br />Change to this:<br />
Code:
<br />&lt;!-- Open = $Open --&gt;<br />&lt;!-- Edit link = {$postrow[$i]['editlinkstart']} --&gt;<br />
<br /><br />I don't know what that code is there for. I also don't know why it doesn't show up here. Maybe someone will come along and enlighten us. <img src="/forum/images/graemlins/wink.gif" alt="" />

Top
#249088 - 08/12/03 11:33 AM Re: [6.3] Facelift for UBB Threads [Re: eslmix]
TonyN Offline
Journeyman

Registered: 06/13/03
Posts: 132
Loc: Berkeley out of this world
Well, it was evidently added in connection with:<br /><br />"2003-July-11 Fixed a bug in the showflat.tmpl and showthreaded.tmpl files that prevented editing the pointers for moved posts. "<br /><br />...to quote Dal re his last change to the "facelift")<br /><br />Isn't it about this that you and others were talking above in the not too distant past?<br /><br />Tony

Top
#249089 - 08/12/03 11:36 AM Re: [6.3] Facelift for UBB Threads [Re: BOOO_YAAA]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Dal should be back the 18th.... and hopefully get this tuned back up. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249090 - 08/23/03 07:37 PM Re: [6.3] Facelift for UBB Threads [Re: Daine]
AllenAyres Offline

I type Like navaho

Registered: 03/10/00
Posts: 25580
Loc: Texas
it be the 23rd <img src="/forum/images/graemlins/tongue.gif" alt="" />
_________________________
- Allen wavey
- What Drives You?

Top
#249091 - 08/23/03 08:19 PM Re: [6.3] Facelift for UBB Threads [Re: SurfMinister]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
Doah! <img src="/forum/images/graemlins/smile.gif" alt="" /><br /><br />Poor Dal. I miss him. <img src="/forum/images/graemlins/smile.gif" alt="" />
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249092 - 08/26/03 02:48 PM Re: [6.3] Facelift for UBB Threads [Re: Daine]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
My custom post icons don't show up for some reason. I can still view them in admin but they aren't an option in the drop down menu.<br /><br />Also, I noticed the same problem as TonyN did when editing a post. I know that suppressing edit for someone else's post is not a default option but the preview check box to the right of the text box is in the zip that I downloaded the other day.

Top
#249093 - 08/27/03 12:12 AM Re: [6.3] Facelift for UBB Threads [Re: BrokenToy]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
For the icons.... did you make changes to the addpost.php script?
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249094 - 08/27/03 10:38 AM Re: [6.3] Facelift for UBB Threads [Re: Daine]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
addpost.php has been modified for Quickreply and Instant Subscriptions.

Top
#249095 - 08/27/03 04:59 PM Re: [6.3] Facelift for UBB Threads [Re: BrokenToy]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
View the source where youa re missing an icon and see what value it's got for the Icon.
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249096 - 08/28/03 12:56 AM Re: [6.3] Facelift for UBB Threads [Re: BOOO_YAAA]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
[]TonyN said:<br />Well, it was evidently added in connection with:<br /><br />"2003-July-11 Fixed a bug in the showflat.tmpl and showthreaded.tmpl files that prevented editing the pointers for moved posts. "<br /><br />...to quote Dal re his last change to the "facelift")<br /><br />Isn't it about this that you and others were talking above in the not too distant past?<br /><br />Tony [/]<br /><br />Sorry, I was doing some testing on the variables and I had echoed them out at the bottom of the script to see what their values were. I fixed the showflat.tmpl file and updated the zip file in the first post.
_________________________
Da LAN Tech

Threads Dev Moderator

Top
#249097 - 08/28/03 08:53 AM Re: [6.3] Facelift for UBB Threads [Re: Daine]
slayer60 Offline
Junior Member

Registered: 06/14/03
Posts: 1185
Loc: New Boston, NH
When viewing the source this is what I see for post icons:<br /><br /><a href="https://www.theiconsortium.com/iBASE/showicons.php?Cat=" target="new">Post Icon</a><br /><br /><br /><br /><select name="Icon" class="formboxes"><br /><option value="blush.gif" >blush</option><br /><option value="chat.gif" >chat</option><br /><option value="cool.gif" >cool</option><br /><option value="crazy.gif" >crazy</option><br /><option value="exclamation.gif" >exclamation</option><br /><option value="disk.gif" >file</option><br /><option value="frown.gif" >frown</option><br /><option value="lightbulb.gif" >idea</option><br /><br /><option value="laugh.gif" >laugh</option><br /><option value="link.gif" >link</option><br /><option value="mad.gif" >mad</option><br /><option value="book.gif" selected="selected" checked="checked">note</option><br /><option value="poll.gif" >poll</option><br /><option value="question.gif" >question</option><br /><option value="ribbon.gif" >ribbon</option><br /><option value="shocked.gif" >shocked</option><br /><option value="smile.gif" >smile</option><br /><br /><option value="tongue.gif" >tongue</option><br /><option value="trophy.gif" >trophy</option><br /><option value="wink.gif" >wink</option><br /></select><br /><br /><br /><br />My custom icons aren't listed in there. When I edit a post that had a custom icon there is no way for me to keep that custom icon.<br /><br />These is the changes I made for Quick Reply:<br /><br />" $Icon = get_input(""Icon"",""post"");<br />// strip off the URL<br /> $Icon = basename($Icon);"<br /><br />Replacing: $Icon = get_input("Icon","post");<br /><br /><br />" $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");<br /> $quickreply = get_input(""quickreply"",""post"");<br /> <br />// -----------------<br />// If it came from the quick reply form<br />// we need to grab the ParentUser number for the reply<br /> if (($quickreply) && (!$ParentUser)) {<br /> $query = ""<br /> SELECT B_PosterId<br /> FROM {$config['tbprefix']}Posts<br /> WHERE B_Number = $Parent<br /> ""; <br /> $sth = $dbh -> do_query($query);<br /> list($ParentUser) = $dbh -> fetch_array($sth); <br /> } "<br /><br />"Replacing:<br /> $PStatus = get_input(""PStatus"",""post"");<br /> $dofav = get_input(""dofav"",""post"");"<br /><br /><br /> if ( (preg_match("/^\s*$/",$Subject)) || ($Body == "") || ($Body == " ") || ($Body == " ") || ($postername == "") ) {<br /><br />"Replacing:<br /> if ( (preg_match(""/^\s*$/"",$Subject)) || ($Body == """") || ($postername == """") ) {"<br /><br /><br />This is the change for Instant subscription:<br /><br />"// Send an Email to the Subscribers if they are Subscribed to this board<br />if (($Approved == ""yes"") && ($config['subscriptions'] == 1))<br />{<br /> $query = ""<br /> SELECT U_Email,<br /> U_Language<br /> FROM {$config['tbprefix']}Users<br /> LEFT JOIN {$config['tbprefix']}Subscribe ON S_UID = U_Number<br /> WHERE S_UID = U_Number<br /> AND S_Board = '$Board_q'<br /> "";<br /><br /> $sth = $dbh -> do_query($query);<br /><br /> while ( list($Mailto,$Language) = $dbh -> fetch_array($sth) ) <br /> {<br /> // -------------------------------------------=<br /> // We need to make sure this user still exists<br /> if ($Mailto) {<br /><br /> // -----------------------------------------------------------------<br /> // Now if this user has a pre-selected language we use that language<br /> // for the message we send out<br /> if (!$Language) { $Language = $config['language']; }<br /> <br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /><br /> $EmailBody = $Body;<br /> if ($config['stripcodes']) { $EmailBody = preg_replace(""/<([^>])*>/"","""",$EmailBody); }<br /> $EmailBody = eregi_replace(""<br />"", ""\r\n"", $EmailBody);<br /><br /> $newline = ""\n"";<br /> if (stristr(PHP_OS,""win"")) { $newline = ""\r\n""; }<br /><br /> $to = $Mailto;<br /> $mailer = new mailer;<br /> $header = $mailer -> headers(); <br /> $subject = ""New Post To $Title from $postername"";<br /> $msg = ""$postername has posted a message to $Title: $newline{$config['phpurl']}/showthreaded.php?Cat=$Cat&Board=$Board&Number=$Mnumber$newline${newline}------Message Below------${newline}Subject: $FormSubject${newline}${newline}Message:$newline$EmailBody"";<br /><br /> mail(""$to"",""$subject"",$msg,$header);<br /><br /> // --------------------------------------------------<br /> // Now, we need to switch back to this users language<br /> $Language = $user['U_Language'];<br /> if (!$Language) { $Language = $config['language']; }<br /> require ""{$config['path']}/languages/$Language/addpost.php"";<br /> }<br /> }<br />}"<br /><br />"above:<br />// ---------------------------------------------<br />// Update the total post if the post is Approved"<br /><br /><br />Otherwise my addpost.php is stock and I don't see how these changes would affect whether or not custom icons are shown.

Top
#249098 - 08/29/03 01:02 AM Re: [6.3] Facelift for UBB Threads [Re: BrokenToy]
JoshPet Offline
I type Like navaho

Registered: 11/29/01
Posts: 11330
Loc: Charlotte, NC
I'm thinking that Dal doesn't have all of my mod incorporated into this... the pull down menu should contain the full URL to the icon (and not just the icon name). That's the only way the preview thing works, and why I had to add code to strip it off in addpost.php<br /><br />Plus it looks more like the standard pulldown alternat template in threads, as it's not doing the custom icons, and I handle the default selection a bit differently. <br /><br />Try using the files in the actual mod and that should fix it. <br /><br />http://www.ubbdev.com/forum/showflat.php?Board=modifications&Number=84789
_________________________
Joshua Pettit
www.JoshuaPettit.com
My abilities are for hire.

Top
#249099 - 08/29/03 04:14 AM Re: [6.3] Facelift for UBB Threads [Re: Daine]
Dalantech Offline
Junior Member

Registered: 02/11/01
Posts: 2392
Loc: Naples, Italy
[]JoshPet said:<br />I'm thinking that Dal doesn't have all of my mod incorporated into this... <br /><br />/ -snip- /<br /><br />Plus it looks more like the standard pulldown alternat template in threads, [/]<br /><br />Yup, I used the alternate template in Facelift. In order to make Facelift a "download and install" mod I couldn't include anything that altered a standard Threads php file. Granted I have a couple of php files listed in the prerequisites, but they are not mandatory. In fact YASM hasn't worked since 6.3 -and I'm not sure how to fix it.<br /><br />The next version of Facelift (for Threads 6.4) will contain no prerequisites and no php file editing (just download and copy to your server).
_________________________
Da LAN Tech

Threads Dev Moderator

Top
Page 4 of 4 < 1 2 3 4



Latest Posts
[7.2.1] - Naked shoutbox
by bellaonline
05/05/12 05:00 PM
[7.x] Stop Forum Spam Integration v0.4
by bellaonline
05/05/12 03:53 PM
Shout Box

(Views)Popular Topics
Known public proxy servers 1689885
Integrated Index Page (IIP) 5.3.1 555705
Finished-[6.5.2] Games Arcade Deluxe v1.9 501236
Integrated Index Page (IIP) 5.1.1 415112
TLD Bv2.1 Released - Threads Links Directory 396822
[6.0x] Who's Online 4.0.0 [Finished] 389412
Finished-[6.5.1] Integrated Index Page (IIP) 6.5 330423
Q & A 298663
Slash UBB 266936
[6.3.x] [beta] Hit Hack 2.0 227970
Forum Stats
13621 Members
59 Forums
37191 Topics
295716 Posts

Max Online: 686 @ 06/28/07 07:04 AM

 

 

 
fusionbb message board php hacks